package com.ts.enterprise.module.user.query.update;


import com.ts.enterprise.module.user.entity.WorkerTag;
import lombok.Data;

import java.util.List;
import java.util.Objects;

/**
 *
 * @author dean
 * @date 2021-07-14 16:14:40
 */
@Data
public class WorkerInfoUpdateQuery {

    private String name;

    private String idCard;

    private String address;

    private String linkName;

    private String linkPhone;

    private String linkRelation;

    private String otherInfo;

    private String jobImage;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WorkerInfoUpdateQuery that = (WorkerInfoUpdateQuery) o;
        return Objects.equals(name, that.name) && Objects.equals(idCard, that.idCard) && Objects.equals(address, that.address) && Objects.equals(linkName, that.linkName) && Objects.equals(linkPhone, that.linkPhone) && Objects.equals(linkRelation, that.linkRelation) && Objects.equals(otherInfo, that.otherInfo) && Objects.equals(jobImage, that.jobImage);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, idCard, address, linkName, linkPhone, linkRelation, otherInfo, jobImage);
    }
}
